package com.crm.model.vo.contractReviewManager;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author yincuimei
 * @Date 2021/10/21 13:50
 * (客服部)合同列表-合同导出实体
 */
@Data
public class CustomerContractExportVO {

    @ColumnWidth(12)
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    @ExcelProperty(value = "创建时间")
    private Date createTm;

    @ColumnWidth(12)
    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "合同开始日期")
    private Date contractStartDate;

    @ColumnWidth(12)
    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "合同结束日期")
    private Date contractEndDate;

    @ColumnWidth(12)
    @ExcelProperty(value = "合同类型")
    private String contractType;

    @ColumnWidth(12)
    @ExcelProperty(value = "合同编号")
    private String contractNumber;

    @ColumnWidth(12)
    @ExcelProperty(value = "合同金额")
    private BigDecimal contractReceivables;

    @ColumnWidth(12)
    @ExcelProperty(value = "订单编号")
    private String orderNumber;

    //支付方式
    @ExcelIgnore
    @ColumnWidth(12)
    private String paymentMethod;

    @ColumnWidth(12)
    @ExcelProperty(value = "支付方式")
    private String paymentMethodText;

    @ColumnWidth(12)
    @ExcelProperty(value = "客户名称")
    private String customerName;

    @ColumnWidth(12)
    @ExcelProperty(value = "绑定手机号")
    private String contactDetails;

    @ColumnWidth(12)
    @ExcelProperty(value = "联系人")
    private String contactName;

    @ColumnWidth(12)
    @ExcelProperty(value = "邮箱")
    private String customerEmail;

    @ColumnWidth(12)
    @ExcelProperty(value = "所属分公司")
    private String companyName;

    @ColumnWidth(12)
    @ExcelProperty(value = "业务顾问")
    private String createPeopleName;
}
